import React, { Component } from 'react'
import Test from './components/Test'
function Demo() {
  return <h1>demo组件</h1>
}
export default class App extends Component {
  render() {
    return (
      <div id="app">
        App
        <hr />
        {/* 假设传递了组件,组件实例和标签,应该如何在Test中渲染 */}
        <Test
          tag={<h1>123</h1>}
          eleType={Demo}
          ele={<Demo></Demo>}
          obj={{ name: 'zs' }}
        ></Test>
      </div>
    )
  }
}
